<%inherit file="/autohandler"/> 
<h1 class="main">Add media</h1>

The page where data gets added.

${ h.form(h.url(action='addmedia'), multipart=True) } 
<table>
<tr>
<td>Upload file:</td>
<td>${ h.file('myfile') } </td>
</tr>
<tr>
<td>File description:</td>
<td>${ h.text('itemname') }</td>
</tr>
${ h.form(h.url(action='addheadinfo'), multipart=True) }
<tr>
<td>Head id:</td>
<td>${ h.text('headid') }</td>
</tr>
<tr>
<td>Head title:</td>
<td>${ h.text('headtitle') }</td>
</tr>
<tr>
<td>Collection:</td>
<td>${ h.select("collection", c.collectioninfo, options=[])}
</table>
${ h.hidden('itemid') }

${ h.submit('Submit','Submit') } 
${ h.end_form() } 

